package com.ktjy.t382.bank.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

//数据库的表名
@TableName("transaction_record")
@Data
public class Bank implements Serializable {
    //设置主键规则,自动递增
    @TableId(type = IdType.AUTO)
    //如果属性和数据库的字段名一致可以省略
    @TableField("id")
    private Long id; //ID
    private String cardno; //卡号
    @TableField("transactionDate")
    private Date transactionDate; //交易日期
    private double amount; //交易金额
    private double balance; //账户余额
    @TableField("transactionType")
    private String transactionType; //交易类型
    private String remark; //备注
}
